home *** CD-ROM | disk | FTP | other *** search
/ Amiga Games: Greatest Hits 1996 / Amiga Games: Greatest Hits 1996.iso / userbox / publicdomain / identify / include / libraries / identify.h next >
C/C++ Source or Header  |  1996-06-06  |  4KB  |  91 lines

  1. /*
  2. **      $VER: identify.h 3.0 (13.5.96)
  3. **
  4. **      identify.library definitions
  5. **
  6. **      (C) Copyright 1996 Richard Koerber
  7. **      All Rights Reserved.
  8. */
  9.  
  10. #ifndef LIBRARIES_IDENTIFY_H
  11. #define LIBRARIES_IDENTIFY_H    (1)
  12.  
  13. #ifndef EXEC_TYPES_H
  14. #include 'exec/types.h'
  15. #endif
  16.  
  17. #ifndef EXEC_LIBRARIES_H
  18. #include 'exec/libraries.h'
  19. #endif
  20.  
  21. #ifndef UTILITY_TAGITEM_H
  22. #include utility/tagitem.h
  23. #endif
  24.  
  25. #define _IDTAGS (0xCD450000)
  26.  
  27. /* ------------------------------------------------------------------------ */
  28. /*  Generic library informations */
  29.  
  30. #define IDENTIFYVERSION (3)
  31.  
  32. struct IdentifyBase {
  33.         struct  Library ifyb_LibNode;
  34. };
  35.  
  36. #define IDENTIFYBUFLEN  (50)    /*  default buffer length */
  37.  
  38. /* ------------------------------------------------------------------------ */
  39. /*  Expansion() tags */
  40.  
  41. #define IDTAG_ConfigDev (_IDTAGS+0x00)  /* (struct ConfigDev *) ConfigDev */
  42.                                         /*  structure to be evaluated */
  43. #define IDTAG_ManufID   (_IDTAGS+0x01)  /* UWORD manufacturer ID if no */
  44.                                         /*  ConfigDev is available */
  45. #define IDTAG_ProdID    (_IDTAGS+0x02)  /* UBYTE product ID if no */
  46.                                         /*  ConfigDev is available */
  47. #define IDTAG_StrLength (_IDTAGS+0x03)  /* UWORD of maximum buffer length, */
  48.                                         /*  including termination. Default */
  49.                                         /*  is 50. */
  50. #define IDTAG_ManufStr  (_IDTAGS+0x04)  /* STRPTR of manufacturer name */
  51.                                         /*  puffer, or NULL */
  52. #define IDTAG_ProdStr   (_IDTAGS+0x05)  /* STRPTR of product name */
  53.                                         /*  puffer, or NULL */
  54. #define IDTAG_ClassStr  (_IDTAGS+0x06)  /* STRPTR of product class */
  55.                                         /*  puffer, or NULL */
  56. #define IDTAG_DeadStr   (_IDTAGS+0x07)  /* STRPTR deadend or recoverable alert? */
  57. #define IDTAG_SubsysStr (_IDTAGS+0x08)  /* STRPTR alert subsystem */
  58. #define IDTAG_GeneralStr (_IDTAGS+0x09) /* STRPTR alert general cause */
  59. #define IDTAG_SpecStr   (_IDTAGS+0x0A)  /* STRPTR alert specific cause */
  60.  
  61. /* ------------------------------------------------------------------------ */
  62. /*  Hardware description types */
  63.  
  64. #define IDHW_SYSTEM     (0)     /*  System (Amiga,DraCo,...) */
  65. #define IDHW_CPU        (1)     /*  CPU (68000,68010,...,68060) */
  66. #define IDHW_FPU        (2)     /*  FPU (---,68881,68882,68040,68060) */
  67. #define IDHW_MMU        (3)     /*  MMU (---,68852,68030,68040,68060) */
  68. #define IDHW_OSVER      (4)     /*  OS Version (V*.*) */
  69. #define IDHW_EXECVER    (5)     /*  Exec Version (V*.*) */
  70. #define IDHW_WBVER      (6)     /*  Workbench Version (---,V*.*) */
  71. #define IDHW_ROMSIZE    (7)     /*  OS ROM Size (*KB, *MB) */
  72. #define IDHW_CHIPSET    (8)     /*  Chipset (OCS,ECS,AGA,DraCo) */
  73. #define IDHW_GFXSYS     (9)     /*  Graphics system (AmigaOS, CyberGraphX, ...) */
  74. #define IDHW_CHIPRAM    (10)    /*  Chip RAM (*KB, *MB, *GB) */
  75. #define IDHW_FASTRAM    (11)    /*  Fast RAM (*KB, *MB, *GB) */
  76. #define IDHW_RAM        (12)    /*  Total RAM (*KB, *MB, *GB) */
  77. #define IDHW_NUMBEROF   (13)    /*  Number of types, PRIVATE! */
  78.  
  79. /* ------------------------------------------------------------------------ */
  80. /*  Error codes */
  81.  
  82. #define IDERR_NOLENGTH  (-1)    /* Buffer length is 0 ?? */
  83. #define IDERR_BADID     (-2)    /* Missing or bad board ID */
  84.  
  85. /* ------------------------------------------------------------------------ */
  86. /*  That's all... */
  87.  
  88. #endif
  89.  
  90.  
  91.